/**
 * Title:		T04CurveSpiral.java
 * Description: Test program for If-else, and Break statement
 * 
 * @version		1.0 May 2009
 * @author		Hidemitsu Izawa (hi2136@columbia.edu)
 */
import kfrog.Frog;
import kfrog.Pond;

public class T04CurveSpiral {
	public static void main(String args[]){
		/** pond */
		Pond pond = new Pond(400,400);//"pondsize" command in KFrog
		pond.setPondColor("WHITE");//"pondcolor" command in KFrog
		
		/** frog1 */
		Frog frog1 = new Frog(pond,1);//"new Frog" command in KFrog
		frog1.frogcolor("BLUE");//"frogcolor" command in KFrog
		frog1.speed(5);//"speed" command in KFrog. 1:slow <-> 5:fast
		frog1.startdraw();//"startdraw" command in KFrog
		int i=1;
		while(true){
			if(i>150){
				break;
			}
			else{
				i=i+5;
				frog1.leftcurve(i, 180);
			}
		}
		Thread FROG1 = new Thread(frog1); // end of "new frog"
		FROG1.start(); // end of "new frog"
	}
}
